import React, {FC} from 'react'
import {Link, Route} from "react-router-dom";
import './Menu.scss';
import Logo from "@/components/Logo";
import RouterList from './RouterList'
import routes from "@/routes";
const Menu: FC = (props) => {
  return (
    <div className={'menu'}>
      <ul>
        {
          RouterList.map((
            {
              path,
              name
            },
            index
          ) => {
            return (
              <li key={index}>
                <Link to={path}>{name}</Link>
              </li>
            )
          })
        }
      </ul>
    </div>
  )
}

export default Menu